<%@ page session="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>

<head>
<title>Defects: IID Defect Tracker</title>
</head>

<body>
<p>This is the defects page of the IID Defect Tracker.</p>

<table id="defectslist" border="0">
	<tr>
		<td>Project Id</td>
		<td>Project Name</td>
		<td>Version</td>
		<td>Defect Summary</td>
	</tr>
	<c:forEach items="${model.defects}" var="defect">
		<c:url var="defectLink" value="/viewDefect.htm">
			<c:param name="id" value="${defect.id}" />
		</c:url>

		<tr>
			<td><c:out value="${defect.project.id}" /></td>
			<td><c:out value="${defect.project.name}" /></td>
			<td><c:out value="${defect.project.version}" /></td>
			<td><a href="${defectLink}"><c:out value="${defect.summary}" /></a></td>
		</tr>
	</c:forEach>

</table>
</body>

</html>